# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gnome-boxes
pkgver=3.36.6
pkgrel=0
pkgdesc="Virtualization made simple"
url="https://wiki.gnome.org/Apps/Boxes"
# https://build.alpinelinux.org/buildlogs/build-edge-ppc64le/testing/gnome-boxes/gnome-boxes-3.34.0-r0.log
arch="all !ppc64le !mips !mips64" # blocked by webkit2gtk on mips
license="GPL-2.0-only"
depends="libvirt-daemon"
makedepends="meson vala libarchive-dev glib-dev gtk+3.0-dev gtk-vnc-dev
	libosinfo-dev libsecret-dev libsoup-dev libusb-dev libvirt-glib-dev
	libxml2-dev spice-gtk-dev tracker-dev vte3-dev webkit2gtk-dev
	libgudev-dev freerdp-dev itstool"
subpackages="$pkgname-lang"
source="https://download.gnome.org/sources/gnome-boxes/${pkgver%.*}/gnome-boxes-$pkgver.tar.xz"

build() {
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=plain \
		. output
	ninja -C output
}

check() {
	ninja -C output test
}

package() {
	DESTDIR="$pkgdir" ninja -C output install
}

sha512sums="a37f34ea54d60d2d927dfe07a6ace6bd74910054b63a58bc2782f6dcd087d4a2153db0662d715a1bc67e2687742a162b3f66ff97b7678eb280f46b53765c7f73  gnome-boxes-3.36.6.tar.xz"
